/* Enhanced Resume Section Styles */
.resume-section {
    background: var(--bg-dark);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.resume-terminal {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.terminal-header {
    padding: 0.75rem 1rem;
    background: var(--bg-panel);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.terminal-title {
    color: var(--cyber-accent);
    font-family: var(--font-tech);
    font-size: 0.9rem;
}

.terminal-status {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.status-active {
    color: var(--cyber-success);
}

.blink {
    animation: blink 1s infinite;
}

.terminal-body {
    padding: 1rem;
    max-height: 120px;
    overflow-y: auto;
}

.terminal-line {
    font-family: var(--font-mono);
    color: var(--cyber-primary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.terminal-line:nth-child(1) {
    animation: typewriter 0.8s steps(40) 0.5s forwards;
    width: 0;
}

.terminal-line:nth-child(2) {
    animation: typewriter 0.7s steps(35) 1.4s forwards;
    width: 0;
}

.terminal-line:nth-child(3) {
    animation: typewriter 0.6s steps(30) 2.2s forwards;
    width: 0;
}

.resume-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

@media (min-width: 992px) {
    .resume-actions {
        flex: 1;
    }
}

@media (max-width: 991px) {
    .resume-container {
        flex-direction: column;
    }

    .resume-actions {
        width: 100%;
    }
}

.resume-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.action-text h3 {
    color: var(--cyber-secondary);
    font-family: var(--font-tech);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.action-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.document-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(30, 45, 61, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-tech);
    font-weight: bold;
    font-size: 0.9rem;
    position: relative;
}

.pdf-icon {
    background: rgba(165, 28, 48, 0.2);
    border: 1px solid var(--cyber-primary);
    color: var(--cyber-primary);
}

.pdf-icon::before {
    content: 'PDF';
}

.docx-icon {
    background: rgba(100, 249, 255, 0.1);
    border: 1px solid var(--cyber-accent);
    color: var(--cyber-accent);
}

.docx-icon::before {
    content: 'DOC';
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-name {
    font-family: var(--font-tech);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.detail-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.download-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 4px;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    flex: 1;
    min-width: 200px;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.download-btn.pdf {
    background: rgba(165, 28, 48, 0.2);
    border: 1px solid var(--cyber-primary);
    color: white;
}

.download-btn.pdf:hover {
    background: rgba(165, 28, 48, 0.3);
}

.download-btn.docx {
    background: rgba(100, 249, 255, 0.1);
    border: 1px solid var(--cyber-accent);
    color: white;
}

.download-btn.docx:hover {
    background: rgba(100, 249, 255, 0.2);
}

.btn-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.btn-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 1px;
}

.pdf .btn-icon::before {
    background: var(--cyber-primary);
}

.docx .btn-icon::before {
    background: var(--cyber-accent);
}

.btn-icon::after {
    content: '↓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-dark);
    font-size: 0.8rem;
    line-height: 1;
}

.resume-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-light);
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.update-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid var(--cyber-success);
    position: relative;
}

.update-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--cyber-success);
    border-radius: 50%;
}

.resume-scanner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.scanner-beam {
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 10px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(100, 249, 255, 0.03) 10%,
            rgba(100, 249, 255, 0.05) 50%,
            rgba(100, 249, 255, 0.03) 90%,
            transparent 100%);
    transform: rotate(-45deg);
    animation: scanBeam 8s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(100, 249, 255, 0.05);
}

@keyframes scanBeam {

    0%,
    100% {
        top: -10%;
    }

    50% {
        top: 110%;
    }
}

@keyframes scanAnimation {
    0% {
        top: -2px;
    }

    50% {
        top: 100%;
    }

    50.1% {
        top: -2px;
    }

    100% {
        top: -2px;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}